import _ from "lodash"
export function isSame(newValue,oldval) {
  let newData = {},oldData = {};
  let newKeys = Object.keys(newValue),oldKeys = Object.keys(oldval);
  //重新构建数据比较是否相等
  newKeys.forEach((key,index)=>{
    newData[key] = newValue[key]
  });
  oldKeys.forEach((key,index)=>{
    oldData[key] = oldval[key]
  });

  return _.isEqual(newData,oldData);
}
